#ifndef _TEXT_BOX_H
#define _TEXT_BOX_H

#include <string>
#include <vector>

// takes text messages and organizes them in a rectangle
// at most 64 lines of 256 characters

class TextBox
{
public:
  TextBox();
  void addMessage(const char* fmt, ...);
  void setWidth(int w);
  void setHeight(int h);
  int getWidth();
  int getHeight();
  void clear();
  char* getLine(int i);
private:
  void createBox();
  int m_width;
  int m_height;
  std::vector<std::string> m_msgList; 
  char m_textBox[64][256];
};

#endif
